home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / mint / gcc / bmake363.zoo / make / src / makefile < prev    next >
Encoding:
Makefile  |  1993-03-01  |  8.5 KB  |  245 lines

  1. # Generated automatically from Makefile.in by configure.
  2. # Copyright (C) 1988, 1989, 1991, 1992, 1993 Free Software Foundation, Inc.
  3. # This file is part of GNU Make.
  4. # GNU Make is free software; you can redistribute it and/or modify
  5. # it under the terms of the GNU General Public License as published by
  6. # the Free Software Foundation; either version 2, or (at your option)
  7. # any later version.
  8. #
  9. # GNU Make is distributed in the hope that it will be useful,
  10. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  12. # GNU General Public License for more details.
  13. # You should have received a copy of the GNU General Public License
  14. # along with GNU Make; see the file COPYING.  If not, write to
  15. # the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
  16.  
  17. #
  18. #    Makefile for GNU Make
  19. #
  20.  
  21. srcdir = .
  22. VPATH = $(srcdir)
  23.  
  24. CC = /gnu/bin/gcc.ttp
  25.  
  26. CFLAGS = -O2 -fomit-frame-pointer -fstrength-reduce -finline-functions \
  27.          -mbaserel -mpcrel
  28. LDFLAGS = -mbaserel
  29.  
  30. # Define these for your system as follows:
  31. #    -DNO_ARCHIVES        To disable `ar' archive support.
  32. #    -DNO_FLOAT        To avoid using floating-point numbers.
  33. #    -DENUM_BITFIELDS    If the compiler isn't GCC but groks enum foo:2.
  34. #                Some compilers apparently accept this
  35. #                without complaint but produce losing code,
  36. #                so beware.
  37. # NeXT 1.0a uses an old version of GCC, which required -D__inline=inline.
  38. defines = -DHAVE_CONFIG_H -DLIBDIR=\"$(libdir)\" -DINCLUDEDIR=\"$(includedir)\"
  39.  
  40. # If you are using the GNU C library, or have the GNU getopt functions in
  41. # your C library, you can comment these out.
  42. GETOPT = getopt.o getopt1.o
  43. GETOPT_SRC = $(srcdir)/getopt.c $(srcdir)/getopt1.c $(srcdir)/getopt.h
  44.  
  45. # If you are using the GNU C library, or have the GNU glob functions in
  46. # your C library, you can comment this out.  GNU make uses special hooks
  47. # into the glob functions to be more efficient (by using make's directory
  48. # cache for globbing), so you must use the GNU functions even if your
  49. # system's C library has the 1003.2 glob functions already.  Also, the glob
  50. # functions in the AIX and HPUX C libraries are said to be buggy.
  51. GLOB = glob/libglob.a
  52.  
  53. # If your system doesn't have alloca, or the one provided is bad, define this.
  54. ALLOCA = alloca.o
  55. ALLOCA_SRC = $(srcdir)/alloca.c
  56.  
  57. # If your system needs extra libraries loaded in, define them here.
  58. # System V probably need -lPW for alloca.  HP-UX 7.0's alloca in
  59. # libPW.a is broken on HP9000s300 and HP9000s400 machines.  Use
  60. # alloca.c instead on those machines.
  61. #LOADLIBES = -ldir  -lutils -lgetloadavg -lx
  62.  
  63. # If there are remote execution facilities defined,
  64. # enable them with switches here (see remote-*.c).
  65. REMOTE =
  66.  
  67. # Any extra object files your system needs.
  68. #extras =  getloadavg.o
  69.  
  70. # Common prefix for machine-independent installed files.
  71. prefix = 
  72. # Common prefix for machine-dependent installed files.
  73. exec_prefix = ${prefix}
  74.  
  75. # Name under which to install GNU make.
  76. instname = make
  77. # Directory to install `make' in.
  78. bindir = /bin
  79. # Directory to find libraries in for `-lXXX'.
  80. libdir = /gnu/lib
  81. # Directory to search by default for included makefiles.
  82. includedir = /usr/lib/include
  83. # Directory to install the man page in.
  84. mandir = /usr/man/man$(manext)
  85. # Number to put on the man page filename.
  86. manext = 1
  87.  
  88. # Whether or not make needs to be installed setgid.
  89. # The value should be either `true' or `false'.
  90. # On many systems, the getloadavg function (used to implement the `-l'
  91. # switch) will not work unless make is installed setgid kmem.
  92. install_setgid = false
  93. # Install make setgid to this group so it can read /dev/kmem.
  94. #group = kmem
  95.  
  96. # Program to install `make'.
  97. INSTALL_PROGRAM = $(INSTALL)
  98. # Program to install the man page.
  99. INSTALL_DATA = $(INSTALL) -m 644
  100. # Generic install program.
  101. INSTALL = /bin/install -c
  102.  
  103. # Program to format Texinfo source into Info files.
  104. MAKEINFO = makeinfo
  105. # Program to format Texinfo source into DVI files.
  106. TEXI2DVI = texi2dvi
  107.  
  108. # Programs to make tags files.
  109. ETAGS = etags -tw
  110. CTAGS = ctags -tw
  111.  
  112. objs = commands.o job.o dir.o file.o misc.o main.o read.o remake.o    \
  113.        remote.o rule.o implicit.o default.o variable.o expand.o        \
  114.        function.o vpath.o version.o ar.o arscan.o signame.o        \
  115.        $(GLOB) $(GETOPT) $(ALLOCA) $(extras)
  116. srcs = $(srcdir)/commands.c $(srcdir)/job.c $(srcdir)/dir.c        \
  117.        $(srcdir)/file.c $(srcdir)/getloadavg.c $(srcdir)/misc.c        \
  118.        $(srcdir)/main.c $(srcdir)/read.c $(srcdir)/remake.c        \
  119.        $(srcdir)/remote.c $(srcdir)/rule.c $(srcdir)/implicit.c        \
  120.        $(srcdir)/default.c $(srcdir)/variable.c $(srcdir)/expand.c    \
  121.        $(srcdir)/function.c $(srcdir)/vpath.c $(srcdir)/version.c    \
  122.        $(srcdir)/ar.c $(srcdir)/arscan.c                \
  123.        $(srcdir)/signame.c $(srcdir)/signame.h $(GETOPT_SRC)        \
  124.        $(srcdir)/commands.h $(srcdir)/dep.h $(srcdir)/file.h        \
  125.        $(srcdir)/job.h $(srcdir)/make.h $(srcdir)/rule.h        \
  126.        $(srcdir)/variable.h $(ALLOCA_SRC) $(srcdir)/config.h.in
  127.  
  128.  
  129. .SUFFIXES:
  130. .SUFFIXES: .o .c .h .ps .dvi .texinfo
  131.  
  132. .PHONY: all check info dvi
  133. all: make
  134. check: # No tests.
  135. info: make.info
  136. dvi: make.dvi
  137.  
  138. make.info: make.texinfo
  139.     $(MAKEINFO) $(srcdir)/make.texinfo
  140.  
  141. make.dvi: make.texinfo
  142.     $(TEXI2DVI) $(srcdir)/make.texinfo
  143.  
  144. make.ps: make.dvi
  145.     dvi2ps make.dvi > make.ps
  146.  
  147. make: $(objs)
  148.     $(CC) $(LDFLAGS) $(objs) $(LOADLIBES) -o make.new
  149.     mv -f make.new make
  150.  
  151. # -I. is needed to find config.h in the build directory.
  152. .c.o:
  153.     $(CC) $(defines) -c -I. -I$(srcdir) -I$(srcdir)/glob \
  154.           $(CFLAGS) $< $(OUTPUT_OPTION)
  155. remote.o: remote.c
  156.     $(CC) $(defines) $(REMOTE) -c -I. -I$(srcdir) \
  157.           $(CFLAGS) $(srcdir)/remote.c
  158.  
  159. # For some losing Unix makes.
  160. MAKE = make
  161.  
  162. glob/libglob.a: force
  163.     cd glob; $(MAKE) CC='$(CC)' CFLAGS='$(CFLAGS) -I..' \
  164.              CPPFLAGS='$(CPPFLAGS) -DHAVE_CONFIG_H' \
  165.              libglob.a
  166. force:
  167.  
  168. tagsrcs = $(srcs) $(srcdir)/remote-*.c
  169. TAGS: $(tagsrcs)
  170.     $(ETAGS) $(tagsrcs)
  171. tags: $(tagsrcs)
  172.     $(CTAGS) $(tagsrcs)
  173.  
  174. .PHONY: install
  175. install: $(bindir)/$(instname) $(mandir)/$(instname).$(manext)
  176.  
  177. $(bindir)/$(instname): make
  178.     $(INSTALL_PROGRAM) make $@.new
  179. # These are necessary for load-average checking to work on most Unix machines.
  180.     if $(install_setgid); then \
  181.       chgrp $(group) $@.new && chmod g+s $@.new; \
  182.     else true; fi
  183.     mv $@.new $@
  184.  
  185. $(mandir)/$(instname).$(manext): make.man
  186.     $(INSTALL_DATA) $(srcdir)/make.man $@
  187.  
  188. .PHONY: clean realclean distclean mostlyclean
  189. clean: glob-clean
  190.     -rm -f make *.o core
  191. distclean: clean glob-realclean
  192.     -rm -f Makefile config.h config.status build.sh
  193.     -rm -f TAGS tags make.info* make-* make.dvi
  194.     -rm -f make.?? make.??s make.log make.toc make.*aux
  195. realclean: distclean
  196. mostlyclean: clean
  197.  
  198. .PHONY: glob-clean glob-realclean
  199. glob-clean glob-realclean:
  200.     cd glob; $(MAKE) $@
  201.  
  202. Makefile: config.status $(srcdir)/Makefile.in
  203.     $(SHELL) config.status
  204. config.h: config.status $(srcdir)/config.h.in
  205.     $(SHELL) config.status
  206.  
  207. configure: configure.in
  208.     autoconf
  209. config.h.in: configure.in
  210.     autoheader
  211.  
  212. # This tells versions [3.59,3.63) of GNU make not to export all variables.
  213. .NOEXPORT:
  214.  
  215. # Automatically generated dependencies will be put at the end of the file.
  216.  
  217. # Automatically generated dependencies.
  218. commands.o : commands.c make.h config.h dep.h commands.h file.h variable.h \
  219.   job.h 
  220. job.o : job.c make.h config.h commands.h job.h file.h variable.h 
  221. dir.o : dir.c make.h config.h 
  222. file.o : file.c make.h config.h commands.h dep.h file.h variable.h 
  223. misc.o : misc.c make.h config.h dep.h 
  224. main.o : main.c make.h config.h commands.h dep.h file.h variable.h job.h \
  225.   getopt.h 
  226. read.o : read.c make.h config.h commands.h dep.h file.h variable.h glob/glob.h 
  227. remake.o : remake.c make.h config.h commands.h job.h dep.h file.h 
  228. remote.o : remote.c remote-stub.c make.h commands.h 
  229. rule.o : rule.c make.h commands.h dep.h file.h variable.h rule.h 
  230. implicit.o : implicit.c make.h config.h rule.h dep.h file.h 
  231. default.o : default.c make.h config.h rule.h dep.h file.h commands.h variable.h 
  232. variable.o : variable.c make.h config.h commands.h variable.h dep.h file.h 
  233. expand.o : expand.c make.h config.h commands.h file.h variable.h 
  234. function.o : function.c make.h config.h variable.h dep.h commands.h job.h 
  235. vpath.o : vpath.c make.h config.h file.h variable.h 
  236. version.o : version.c 
  237. ar.o : ar.c make.h file.h 
  238. arscan.o : arscan.c make.h config.h 
  239. signame.o : signame.c signame.h 
  240. getopt.o : getopt.c config.h getopt.h 
  241. getopt1.o : getopt1.c config.h getopt.h 
  242. getloadavg.o : getloadavg.c config.h 
  243.